{{include file=../head.tpl}}
	<div class="category">
		<div class="category_left">
	<if condition="$getalllist">
		<foreach array="getalllist">
			<div class="category_left_list">
				<div class="sort">
					<span>{{$row['name']}}</span>
					<span>
						<a href="{{U(['special'=>'category','sid'=>$row['sid']],MODULE)}}">更多》</a>
					</span>
				</div>
				<ul class="speciallist">
					<foreach array="row['list']" key="_key" value="_row">
					<li>
						<a href="{{U(['special'=>'content','id'=>$_row['id'],'sid'=>$_row['sid']],MODULE)}}">
						<img src="{{get_img_url($_row['thumb'])}}" alt="{{$_row['name']}}"  onerror="this.src='{{WEBURL}}/public/global/images/nopic.jpg'"/>
						<span>{{$_row['name']}}</span>
						</a>
					</li>
					</foreach>
				</ul>
				<div class="c"></div>
			</div>
		</foreach>
	</if>
	<if condition="$getlist">
		<div class="category_left_list">
			<div class="sort">
				<span>本专题列表</span>
				<span></span>
			</div>
			<ul class="special_list">
				<foreach array="getlist">
				<li>
					<a href="{{	U(['special'=>'content','id'=>$row['id'],'sid'=>$row['sid']],MODULE)}}" title="{{$row['name']}}">
					<div class="thumb">
						<img src="{{get_img_url($row['thumb'])}}" alt="{{$row['name']}}"  onerror="this.src='{{WEBURL}}/public/global/images/nopic.jpg'"/>
					</div>
					<div class="text">
						<div class="title">{{Get_word_strpos($row['name'],'20');}}</div>
						
						<div>
							{{Get_word_strpos($row['content'],'200');}}
							<div class="time">{{date("Y-m-d H:i",$row['posttime']);}}</div>
						</div>
					</div>
					
					</a>
				</li>
				</foreach>			
			</ul>
			<div class="c"></div>
		</div>
		<div class="page">{{$Get_Page}}</div>	
	</if>
	
		</div>
		<div class="category_right">
			<div class="category_right_content main_content_2">
				<div class="sort">
					<span>最新图片</span>
					<span>
						<a href="{{U(['cid'=>2],MODULE)}}">更多》</a>
					</span>
				</div>
				<ul class="photo_list list">
					<sql out="new_photo" from="M_jab.article"  select="*" start_limit="0" where="state='1' AND is_pic='1'" order="aid" by="desc" limit="9">
					<foreach array="new_photo">
						<li>
							<a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}" title="{{$row['title']}}">
								<img src="{{get_img_url($row['thumb'])}}" alt="{{$row['title']}}"/>
								<div class="title">{{$row['title']}}</div>
							</a>	
						</li>
					</foreach>
				</ul>
			</div>
			<div class="category_right_content main_content_2">
				<div class="sort">
					<span>最新资讯</span>
					<span>
						<a href="{{U(['cid'=>1],MODULE)}}">更多》</a>
					</span>
				</div>
				<ul class="list">
					<sql out="news" from="M_jab.article"  select="*" start_limit="0" where="state='1'" order="aid" by="desc" limit="10">
					<foreach array="news">
						<li>
							<a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}" title="{{$row['title']}}">{{$row['title']}}</a>
							<span class="time">{{date('Y-m-d H:i:s',$row['posttime'])}}</span>
						</li>
					</foreach>
				</ul>
			</div>
		</div>
		<div class="c"></div>
	</div>
{{include file=../foot.tpl}}
